package com.hsteach.dao.mapper.activity;

import com.hsteach.dao.domain.activity.ActivitiesAreaApp;
import com.hsteach.dao.domain.activity.ActivityClassCount;
import com.hsteach.dao.domain.activity.Activities;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 活动列表Mapper接口
 * 
 * @author ruoyi
 * @date 2023-07-07
 */
@Mapper
public interface ActivitiesMapper
{
    /**
     * 查询活动列表
     * 
     * @param id 活动列表主键
     * @return 活动列表
     */
    public Activities selectTbActivitiesById(Long id);

    public List<Activities> selectTbActivitiesListByClass(@Param("eclassIds") List<String> eclassIds);

    public List<Activities> listFive(@Param("eclassIds") List<String> eclassIds);

    public List<ActivityClassCount> selectClassCountByAcId(Long id);

    /**
     * 查询活动列表列表
     * 
     * @param activities 活动列表
     * @return 活动列表集合
     */
    public List<Activities> selectTbActivitiesList(Activities activities);
    public List<Activities> selectTbActivitiesListT1(Activities activities);

    /**
     * 新增活动列表
     * 
     * @param activities 活动列表
     * @return 结果
     */
    public Long insertTbActivities(Activities activities);

    /**
     * 修改活动列表
     * 
     * @param activities 活动列表
     * @return 结果
     */
    public int updateTbActivities(Activities activities);

    /**
     * 删除活动列表
     * 
     * @param id 活动列表主键
     * @return 结果
     */
    public int deleteTbActivitiesById(Long id);

    public int updateDeleteById(Long id);

    /**
     * 批量删除活动列表
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTbActivitiesByIds(Long[] ids);

    List<ActivitiesAreaApp> selectStatisticsAreaApp();
}
